package com.atguigu.gulimall.search.vo;

import lombok.Data;

import java.util.List;

/**
 * @author zhuguanming
 * @description 页面传递过来的检索条件
 * @date 2021/5/31 21:30
 */
@Data
public class SearchParam {
    /**
     * 页面传递过来的全文匹配关键字
     */
    private String keyword;
    /**
     * 三级分类ID
     */
    private Long catalog3Id;
    
    /**
     * sort=saleCount、skuPrice、hotScore_asc/desc
     */
    private String sort;

    /**
     * 1 有库存 0 无库存
     */
    private Integer hasStock;
    /**
     * 价格区间1_500/_500/500_
     */
    private String skuPrice;
    private List<Long> brandId;
    /**
     * attrs=2_5寸:6寸 （attrId_attrValues）
     */
    private List<String> attrs;
    private Integer pageNum = 1;

    private String queryString;

    public SearchParam initQueryString(String queryString) {
        this.queryString = queryString;
        return this;
    }
}
